import request from '@/utils/request'

// 登录
export function manageLogin(data) {
  return request({
    url: '/auth/manageLogin/login',
    method: 'post',
    data
  })
}

// 发送验证码
export function send(data) {
  return request({
    url: '/auth/manageLogin/send/' + data,
    method: 'post'
  })
}

// 获取数据
export function manageGetInfo(token) {
  return request({
    url: '/auth/allCommon/info',
    method: 'post',
    params: { token }
  })
}

// 登出
export function manageLogout() {
  return request({
    url: '/auth/allCommon/layout',
    method: 'post'
  })
}
